# 3.计算1000以内所有不能被7整除的整数之和

sum1 = 0
for num in range(0, 1001):
    if num % 7 != 0:
        sum1 = sum1 + num

print(sum1)
